<template>
	<view class="tongji-box">
		<view class="tongji-title biaoti1">按班级统计</view>
		<view class="class-box">
			<view class="class-box-list" @click="tongjilist(banji)">
				<view class="zhuanye zhengwen2">
					计算机应用
				</view>
				<view class="banji zhengwen2">
					1班
				</view>
			</view>
			<view class="class-box-list">
				<view class="zhuanye zhengwen2">
					计算机应用
				</view>
				<view class="banji zhengwen2">
					1班
				</view>
			</view>
			<view class="class-box-list">
				<view class="zhuanye zhengwen2">
					计算机应用
				</view>
				<view class="banji zhengwen2">
					1班
				</view>
			</view>
			<view class="class-box-list">
				<view class="zhuanye zhengwen2">
					计算机应用
				</view>
				<view class="banji zhengwen2">
					1班
				</view>
			</view>
			<view class="class-box-list">
				<view class="zhuanye zhengwen2">
					计算机应用
				</view>
				<view class="banji zhengwen2">
					1班
				</view>
			</view>
			<view class="class-box-list">
				<view class="zhuanye zhengwen2">
					计算机应用
				</view>
				<view class="banji zhengwen2">
					1班
				</view>
			</view>
			<view class="class-box-list">
				<view class="zhuanye zhengwen2">
					计算机应用
				</view>
				<view class="banji zhengwen2">
					1班
				</view>
			</view>
		</view>
		
		<view class="fenlei-box">
			
			  <uni-collapse>
			  	<uni-collapse-item class="biaoticolor" :title="titlen">
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
			  	</uni-collapse-item>
				
				
				
				<uni-collapse-item class="biaoticolor" :title="titlen">
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
				</uni-collapse-item>
				
				
				
				<uni-collapse-item class="biaoticolor" :title="titlen">
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
						<view class="neirong">
							<view class="neirong-top">
								<view class="xingming zhengwen2">张三</view>
								<view class="xuehao zhengwen2"> 学号：0000000001</view>
								<view class="banji zhengwen2">班级：计算机应用2班</view>
							</view>
							<view class="neirong-bottom">
								<view class="neirong-bottom-left">
									<view class="chichang zhengwen2">
										请假时间：（总时长{{ time }}小时）
									</view>
									<view class="shijian zhengwen2">
										2022-6-9 8:00 至 2022-6-13 8:00
									</view>
								</view>
								<view class="neirong-bottom-right">
									<view class="zhuangtai zhengwen2">
										正常销假
									</view>
								</view>
							</view>
						</view>
						
						
				</uni-collapse-item>
			  </uni-collapse>
		</view>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				titlen:'2022年6月',
				time:'40',
				banji:'软件一班'
			}
		},
		methods: {
			tongjilist(banji){
				uni.navigateTo({
					url: '/pages/tongjilist/tongjilist?banji='+banji
				});
			}
		}
	}
</script>

<style lang="scss">
	@import url(@/common/common.css);
	.tongji-box{
		width: 100%;
		overflow: hidden;
		box-sizing: border-box;
		.tongji-title{
			width: 95%;
			margin: 0 auto;
			margin-top: 20rpx;
			margin-bottom: 20rpx;
		}
		.class-box{
			width: 95%;
			margin: 0 auto;
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			justify-content: space-between;
			box-sizing: border-box;
			margin-bottom: 10rpx;
			
			.class-box-list{
				display: flex;
				width: 30%;
				border: 1rpx solid #999999;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				box-sizing: border-box;
				margin: 15rpx 0;
				padding: 10rpx;
			}
		}
		.fenlei-box{
			width: 100%;
			overflow: hidden;
			box-sizing: border-box;
			.neirong{
				width: 95%;
				margin: 0 auto;
				display: flex;
				overflow: hidden;
				box-sizing: border-box;
				flex-direction: column;
				padding: 10rpx 0;
				border-bottom: 1rpx solid #999999;
				
				.neirong-top{
					display: flex;
					width: 100%;
					overflow: hidden;
					box-sizing: border-box;
					flex-direction: row;
					.xingming{
						flex: 3;
						
					}
					.xuehao{
						flex: 7;
					}
					.banji{
						flex: 7;
						text-align: right;
					}
					
				}
				.neirong-bottom{
					display: flex;
					width: 100%;
					overflow: hidden;
					box-sizing: border-box;
					flex-direction: row;
					margin-top: 10rpx;
					.neirong-bottom-left{
						flex: 3;
						overflow: hidden;
						box-sizing: border-box;
						flex-direction:column;
						justify-content: center;
						.shichang{
							flex: 1;
						}
						.shijian{
							flex: 1;
							letter-spacing: 1rpx;
							margin-top: 10rpx;
							
							
						}
					}
					.neirong-bottom-right{ 
						flex: 1;
						overflow: hidden;
						box-sizing: border-box;
						// justify-content: center;
						align-items: center;
						.zhuangtai{
							width: 80%;
							padding: 20rpx 0;
							text-align: center;
							background-color: #f5f5f5;
						}
					}
					
				}
			}
			.neirong:last-child{
				border: none;
			}
			.biaoticolor{
				/deep/ .uni-collapse-item__title-box{
					background-color: #f5f5f5;
				}
				/deep/ .uni-collapse-item__title{
					background-color: #f5f5f5;
				}
				/deep/ .uni-collapse-item__title-text{
					color: #444444;
					font-size: 36rpx;
				}
				
			}
			
			
		}
		
	}
		
	.fenlei-box{
		/dedp/ .uni-collapse-item__wrap-content .uni-collapse-item--border{
			border-bottom: none;
		}	
	}

</style>
